<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/jquery.dialog.css" />
<link rel="stylesheet" href="css/index.css" />
    <link rel="stylesheet" href="css/info-mgt.css" />
    <link rel="stylesheet" href="css/WdatePicker.css" />
<title>毕业生简历管理系统</title>
    <style type="text/css">
        a:link {
            font-size: 12px;
            color: #000000;
            text-decoration: none;
        }
        a:visited {
            font-size: 12px;
            color: #000000;
            text-decoration: none;
        }
        a:hover {
            font-size: 12px;
            color: #999999;
            text-decoration: none;
        }
        a svg:hover{
            transform: scale(1.2);
        }
        h1{
            font-family: 华文行楷;
        }
    </style>
</head>
<body>
<script type="text/javascript" src="js/jquery.js"></script>
<div id="container">
	<div id="hd">
    	<div class="hd-wrap ue-clear">
        	<div class="top-light"></div>
            <h1>毕业生简历管理系统</h1>
            <div class="login-info ue-clear">
                <div class="welcome ue-clear"><span>欢迎您,</span><a href="employerRecommend?e_id=${employer.e_id}" class="user-name">${employer.name}</a></div>
            </div>
            <div class="toolbar ue-clear">
                <a href="employerExit" class="quit-btn exit"></a>
            </div>
        </div>
    </div>
    <div id="bd">
    	<div class="wrap ue-clear">
        	<div class="sidebar">
            	<h2 class="sidebar-header"><p>功能导航</p></h2>
                <ul class="nav">
                	<li class="recommend"><div class="nav-header" onclick="employerSkip1()"><a  class="ue-clear"><span>内容推荐</span></a></div></li>
                    <li class="position_manage"><div class="nav-header" onclick="employerSkip8()"><a class="ue-clear"><span>招聘岗位管理</span></a></div>
                    <li class="search"><div class="nav-header" onclick="employerSkip7()"><a class="ue-clear"><span>人才搜索</span></a></div></li>
                	<li class="inform"><div class="nav-header" onclick="employerSkip5()" ><a  class="ue-clear"><span>求职者通知</span></a></div></li>
                    <li class="manage"><div class="nav-header" onclick="employerSkip6()" ><a  class="ue-clear"><span>聘用信息反馈</span></a></div></li>
                </ul>
            </div>
            <div class="content">
                <div class="title"><h2>人才信息</h2></div>
                <div class="query">
                    <form method="post" action="findCandidatesByParams?e_id=${employer.e_id}">
                        <div class="query-conditions ue-clear">
                            <div class="conditions name ue-clear">
                                <label>专业：</label>
                                <select name="major" style="width:200px;height:28px;border:1px solid #C5D6E0">
                                    <option value="">不限</option>
                                    <option>软件工程</option>
                                    <option>经济管理</option>
                                    <option>数学</option>
                                    <option>土木工程</option>
                                    <option>法学</option>
                                </select>
                            </div>
                            <div class="conditions operate-time ue-clear">
                                <label>薪资范围：</label>
                                <div class="select-wrap">
                                    <select name="salary_requirement" style="width:200px;height:28px;border:1px solid #C5D6E0">
                                        <option value="">不限</option>
                                        <option >3000-4000</option>
                                        <option >4001-5000</option>
                                        <option >5001-6000</option>
                                        <option >6001-7000</option>
                                        <option >7001-8000</option>
                                    </select>
                                </div>
                            </div>
                            <div class="conditions time ue-clear">
                                <label>发布时间：</label>
                                <div class="time-select">
                                    <input name="release_time" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
                                    <i class="icon"></i>
                                </div>
                            </div>
                            <div class="conditions name ue-clear">
                                <label>学校：</label>
                                <input style="width:195px;height:25px;border:1px solid #C5D6E0" name="school" type="text">
                            </div>
                        </div>
                        <div class="query-btn ue-clear">
                            <input style="background-color:#8eb2d2;color:white;border-radius:10px" type="submit" value="查询"/>
                            <input style="background-color:#EFF6FA;color:black;border-radius:10px" type="reset" value="清空"/>
                        </div>
                    </form>
                </div>
                <div class="table-box">
                    <table>
                        <thead>
                        <tr>
                            <th class="num">序号</th>
                            <th class="num">姓名</th>
                            <th class="num">专业</th>
                            <th class="num">毕业学校</th>
                            <th class="num">薪资要求</th>
                            <th class="num">联系方式</th>
                            <th class="num">查看</th>
                            <th class="num">通知面试</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${candidates}" var ="candidate"  begin="0" varStatus="status">
                            <tr>
                                <td class="num">${status.count }</td>
                                <td class="num">${candidate.name}</td>
                                <td class="num">${candidate.major}</td>
                                <td class="num">&nbsp;${candidate.school}</td>
                                <td class="num">${candidate.salary_requirement}</td>
                                <td class="num">${candidate.phone_number}</td>
                                <td class="num">
                                    <a style="color:blue" href="candidateInfo?c_id=${candidate.c_id }" title="详细信息">
                                        <svg t="1648472204377" class="icon" viewBox="0 0 1304 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="22759" width="35" height="35"><path d="M1078.06466969 815.07975268H758.54757525l-76.52300154 98.00314207c-18.79512286 22.82264978-52.35784332 28.19268512-75.1804931 9.39756142-4.02752609-2.68501767-6.71254376-5.37003534-9.39756142-9.39756142L520.92351765 815.07975268H218.85903765c-59.07038708 0-107.40070432-48.33031723-107.40070432-107.40070431V197.52570432c0-59.07038708 48.33031723-107.40070432 107.40070432-107.40070432h859.20563205c59.07038708 0 107.40070432 48.33031723 107.40070431 107.40070432v510.15334405c0 59.07038708-48.33031723 107.40070432-107.40070431 107.40070431z" fill="#2F77F1" p-id="22760"></path><path d="M406.81026958 385.47693625c37.59024655 0 67.12544009 29.53519354 67.1254401 67.1254401s-29.53519354 67.12544009-67.1254401 67.12544009-67.12544009-29.53519354-67.1254401-67.12544009 29.53519354-67.12544009 67.1254401-67.1254401z m241.6515845 0c37.59024655 0 67.12544009 29.53519354 67.12543928 67.1254401s-29.53519354 67.12544009-67.12543928 67.12544009-67.12544009-29.53519354-67.12544009-67.12544009 29.53519354-67.12544009 67.12544009-67.1254401z m241.65158368 0c37.59024655 0 67.12544009 29.53519354 67.1254401 67.1254401s-29.53519354 67.12544009-67.1254401 67.12544009-67.12544009-29.53519354-67.1254401-67.12544009 29.53519354-67.12544009 67.1254401-67.1254401z" fill="#AFFCFE" p-id="22761"></path></svg>
                                    </a>
                                </td>
                                <td class="num">
                                    <c:choose>
                                        <c:when test="${cIsEmployee.get(candidate.c_id).cv_isAgree==1}">
                                            <label class="num" title="已通知">
                                                <svg t="1648474271212" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="34385" width="35" height="35"><path d="M512.1 119.6c216.4 0 392.5 176.1 392.5 392.5S728.5 904.7 512.1 904.7 119.6 728.6 119.6 512.1s176.1-392.5 392.5-392.5m0-54.9C265 64.7 64.7 265 64.7 512.1S265 959.6 512.1 959.6c247.1 0 447.4-200.3 447.4-447.4S759.2 64.7 512.1 64.7z" fill="#0C90F8" p-id="34386"></path><path d="M469.1 667.6c-7.1 0-14.2-2.7-19.5-8.2L274.8 482.1c-10.6-10.8-10.5-28.2 0.3-38.8 10.8-10.6 28.2-10.5 38.8 0.3l174.7 177.3c10.6 10.8 10.5 28.2-0.3 38.8-5.3 5.3-12.3 7.9-19.2 7.9z" fill="#4C4F54" p-id="34387"></path><path d="M469.1 667.6c-7.1 0-14.2-2.7-19.6-8.2-10.6-10.8-10.5-28.2 0.3-38.8l260.8-256.1c10.8-10.6 28.2-10.5 38.8 0.3 10.6 10.8 10.5 28.2-0.3 38.8L488.3 659.8c-5.4 5.2-12.3 7.8-19.2 7.8z" fill="#4C4F54" p-id="34388"></path></svg>
                                            </label>
                                        </c:when>
                                        <c:otherwise>
                                            <a class="num" style="color:blue" id="inform" href="agreeCVLive?c_id=${candidate.c_id }&&e_id=${employer.e_id}&&cv_isAgree=1" title="通知面试">
                                                <svg t="1648475101584" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="49689" width="35" height="35"><path d="M512 5.7c-22.4 0-40.5 18.1-40.5 40.5v81c0 22.4 18.1 40.5 40.5 40.5s40.5-18.1 40.5-40.5v-81c0-22.3-18.1-40.5-40.5-40.5z" fill="#4C4F54" p-id="49690"></path><path d="M512 167.7c134 0 243 109 243 243v164.7c0 38.5 27.1 71.7 64.9 79.4 25 5.1 43.1 27.3 43.1 52.9s-18.1 47.8-43.1 52.9c-1.6 0.3-3.2 0.7-4.7 1.1H208.8c-1.5-0.4-3.1-0.8-4.7-1.1-25-5.1-43.1-27.3-43.1-52.9s18.1-47.8 43.1-52.9c37.8-7.7 64.9-40.9 64.9-79.4V410.7c0-133.9 109-243 243-243m0-81c-178.9 0-324 145.1-324 324v164.7c-61.6 12.5-108 67-108 132.3S126.4 827.5 188 840v2.7h648V840c61.6-12.5 108-67 108-132.3S897.6 588 836 575.5V410.7c0-178.9-145.1-324-324-324z" fill="#2081F6" p-id="49691"></path><path d="M512 1018.3c-73.5 0-143.1-28-196.1-78.8-16.1-15.5-16.7-41.1-1.2-57.3 15.5-16.2 41.1-16.7 57.3-1.2 37.8 36.3 87.6 56.2 140 56.2 49.9 0 97.8-18.3 135-51.5 16.7-15 42.3-13.5 57.2 3.2 14.9 16.7 13.5 42.3-3.2 57.2-52 46.5-119.1 72.2-189 72.2z" fill="#4C4F54" p-id="49692"></path></svg>
                                            </a>
                                        </c:otherwise>
                                    </c:choose>
                                </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </div>
                <div class="pagination ue-clear">
                    <%--	分页--%>
                    <%--		<nav aria-label="Page navigation">--%>
                    <ul class="pagination">
                        <%--				前一页--%>
                        <c:choose>
                            <c:when test="${pageInfo.isFirstPage}">
                                <li>
                                    <a href="javascript:void(0)" aria-label="Previous">
                                        <span aria-hidden="true"><<</span>
                                    </a>
                                </li>
                            </c:when>
                            <c:otherwise>
                                <li>
                                    <a href="/findAllCandidates?e_id=${employer.e_id}&&pageNum=${pageInfo.prePage}" aria-label="Previous">
                                        <span aria-hidden="true"><<</span>
                                    </a>
                                </li>
                            </c:otherwise>
                        </c:choose>
                        <%--			中间具体页数--%>
                        <c:forEach items="${pageInfo.navigatepageNums}" var="pi">
                            <li><a href="findAllCandidates?e_id=${employer.e_id}&&pageNum=${pi}">${pi}</a></li>
                        </c:forEach>

                        <%--			后一页--%>

                        <c:choose>
                            <c:when test="${pageInfo.isLastPage}">
                                <li>
                                    <a href="javascript:void(0)" aria-label="Next">
                                        <span aria-hidden="true">>></span>
                                    </a>
                                </li>
                            </c:when>
                            <c:otherwise>
                                <li>
                                    <a href="findAllCandidates?e_id=${employer.e_id}&&pageNum=${pageInfo.nextPage}" aria-label="Next">
                                        <span aria-hidden="true">>></span>
                                    </a>
                                </li>
                            </c:otherwise>
                        </c:choose>
                    </ul>
                    <%--		</nav>--%>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/core.js"></script>
<script type="text/javascript" src="js/jquery.dialog.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/WdatePicker.js"></script>
<script>
    function employerSkip1(){ const e_id="${employer.e_id}"; location.href="employerRecommend?e_id="+e_id}
    function employerSkip7(){ const e_id="${employer.e_id}"; location.href="findAllCandidates?e_id="+e_id}
    function employerSkip5(){ const e_id="${employer.e_id}"; location.href="employerNotice?e_id="+e_id}
    function employerSkip6(){ const e_id="${employer.e_id}"; location.href="findAllAcceptedCandidatesByEId?e_id="+e_id}
    function employerSkip8(){ const e_id="${employer.e_id}"; location.href="findAllPositionsByEId?e_id="+e_id}

    const  msg="${message}";
        if(msg){
            alert(msg);
        }
</script>
</html>